<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta content="IE=edge" http-equiv="X-UA-Compatible">
    <title>Sass: LibSass</title>
    <meta content="Syntatically Awesome Style Sheets" name="description">
    <meta content="width=device-width, initial-scale=1" name="viewport">
    <link href="./css/main.css" rel="stylesheet">
</head>
<body class="libsass">
<div class="page">
    <div class="alert stickers">
        <div class="container">
            <p>
                <strong>Your laptop needs more Sass.</strong>
                <a href="http://devswag.com/products/sass-stickers-4">Grab a set of Sass stickers now</a>. </p>
        </div>
    </div>
    <div class="pop-stripe"></div>
    <header class="banner" role="banner">
        <div class="container">
            <h1 class="site-brand">
                <a href="/">
                    <img height="48" alt="Sass" src="./images/logo.svg">
                </a>
            </h1>
            <nav class="navigation collapse" role="navigation">
                <ul>
                    <li><a href="./install.html">Install</a></li>
                    <li><a href="./guide.html">Learn Sass</a></li>
                    <li><a href="http://blog.sass-lang.com/">Blog</a></li>
                    <li><a href="../documentation/file.SASS_REFERENCE.html">Documentation</a></li>
                    <li><a href="./community.html">Get Involved</a></li>
                    <li><a href="./libsass.html">libSass</a></li>
                </ul>
            </nav>
            <div class="banner-toggle">
                <button data-target=".navigation" data-toggle="collapse" type="button">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>
        </div>
    </header>
    <div class="page-header">
        <div class="container">
            <h1> LibSass </h1>
        </div>
    </div>
    <div class="body">
        <div class="container">
            <div class="content">
                <main class="main content-primary" role="main"><p class="introduction"> We want everyone to enjoy Sass,
                    no matter what language they use. Sass was originally written in Ruby. <a
                            href="http://libsass.org/">LibSass</a> is a C/C++ port of the Sass engine. The point is to
                    be simple, faster, and easy to integrate. Find out more about the project over at <a
                            href="http://github.com/hcatlin/libsass">GitHub</a>. </p>
                    <h2>Wrappers</h2>
                    <p>LibSass is just a library. To run the code locally (i.e. to compile your stylesheets), you need
                        an implementer, or "wrapper". There are a number of other wrappers for LibSass. We encourage you
                        to write your own wrapper - the whole point of Libsass is that we want to bring Sass to many
                        other languages, not just Ruby!</p>
                    <p>Below are the LibSass wrappers that we're currently aware of. Sometimes there are multiple
                        wrappers per language –&nbsp;in those cases, we put the most recently-updated wrapper first.</p>
                    <ul class="slides">
                        <li id="sassc"><h3>Sass C</h3>
                            <p>SassC (get it?) is an wrapper written in C.</p>
                            <p>To run the compiler on your local machine, you need to build SassC. To build SassC, you
                                must have either a local copy of the LibSass source or it must be installed into your
                                system. For development, please use the source version. You must then setup an
                                environment variable pointing to the LibSass folder, for example:</p> <pre
                                    class="highlight plaintext"><code>export
                                SASS_LIBSASS_PATH=/Users/hcatlin/path/libsass
                            </code></pre>
                            <p> The executable will be in the bin folder. To run it, simply try something like: </p> <pre
                                    class="highlight plaintext"><code>./bin/sassc [input file] &gt; output.css
                            </code></pre>
                        </li>
                        <li id="go"><h3>Go</h3>
                            <p><a href="https://github.com/wellington/wellington">Wellington</a> is an extension to
                                LibSass that adds spriting and is available on brew:</p>
                            <p><code>brew install wellington</code></p>
                            <p>There are also three other LibSass wrappers in go: <a
                                    href="https://github.com/moovweb/gosass">gosass</a>, <a
                                    href="https://github.com/SamWhited/go-sass">go-sass</a> and <a
                                    href="https://github.com/suapapa/go_sass">go_sass</a> which have not been updated in
                                a while.</p></li>
                        <li id="java"><h3>Java</h3>
                            <p>There is one Java wrapper – the <a
                                    href="https://github.com/warmuuh/libsass-maven-plugin">LibSass Maven plugin</a>.</p>
                        </li>
                        <li id="javascript"><h3>JavaScript</h3>
                            <p>The only pure JavaScript implementation is <a
                                    href="https://github.com/medialize/sass.js">sass.js</a>. There's a way to <a
                                    href="http://medialize.github.io/playground.sass.js/">test it in the browser</a>,
                                too.</p></li>
                        <li id="lua"><h3>Lua</h3>
                            <p>The lua wrapper is found at <a
                                    href="https://github.com/craigbarnes/lua-sass">lua-sass</a>.</p></li>
                        <li id="net"><h3>.NET</h3>
                            <p><a href="https://github.com/darrenkopp/libsass-net">libsass-net</a> is updated regularly,
                                and is probably the best bet. There's also <a href="https://github.com/TBAPI-0KA/NSass">NSass</a>,
                                although it hasn't been updated in a while.</p></li>
                        <li id="node"><h3>Node</h3>
                            <p>The <a href="https://github.com/sass/node-sass">node-sass</a> project has proven to be
                                popular, and we've taken it into the main Sass GitHub repo. Check out its package page
                                <a href="https://www.npmjs.org/package/node-sass">here</a>, and <a
                                        href="https://twitter.com/nodesass">there's a dedicated twitter account</a> for
                                updates.</p></li>
                        <li id="perl"><h3>Perl</h3>
                            <p>The <a href="https://github.com/sass/perl-libsass">CSS::Sass</a> project is updated
                                regularly. There's the <a
                                        href="https://github.com/ysasaki/Text-Sass-XS">Text-Sass-XS</a> project, too,
                                although it hasn't been updated in a while.</p></li>
                        <li id="php"><h3>PHP</h3>
                            <p>The <a href="https://github.com/sensational/sassphp">SassPHP</a> project is an updated
                                fork of an <a href="https://github.com/jamierumbelow/sassphp">older PHP version</a>.</p>
                        </li>
                        <li id="python"><h3>Python</h3>
                            <p>There are two python projects that are updated regularly. The <a
                                    href="https://github.com/dahlia/libsass-python">libsass-python</a> project (there
                                are more details on <a href="http://hongminhee.org/libsass-python/">its own website</a>)
                                and the <a href="https://github.com/pistolero/python-scss">python-scss</a> project.</p>
                            <p>Two other python projects, <a href="https://github.com/rsenk330/pylibsass">pylibsass</a>
                                and <a href="https://github.com/marianoguerra/SassPython">SassPython</a>, haven't been
                                updated in a while.</p></li>
                        <li id="ruby"><h3>Ruby</h3>
                            <p>LibSass has also been ported back into ruby, for the <a
                                    href="https://github.com/sass/sassc-ruby">sassc-ruby</a> project.</p></li>
                        <li id="scala"><h3>Scala</h3>
                            <p>The only scala project, <a href="https://github.com/kkung/Sass-Scala">Sass-Scala</a>,
                                hasn't been updated in a couple of years.</p></li>
                    </ul>
                    <h2>About LibSass</h2>
                    <p>This project is the brainchild of <a href="http://twitter.com/hcatlin">Hampton Catlin</a>, the
                        original creator of Sass, and is sponsored by <a href="http://moovweb.com/">Moovweb</a>. <a
                                href="http://github.com/akhleung">Aaron Leung</a> from Moovweb is the primary developer.
                    </p>
                    <figure><img alt="LibSass logo" width="640" height="320"
                                 src="./images/libsass.png"></figure>
                </main>
                <div class="complementary content-secondary" role="complementary"><h3>Wrappers</h3>
                    <ul class="anchors">
                        <li><a href="#sassc">SassC</a></li>
                        <li><a href="#go">Go</a></li>
                        <li><a href="#java">Java</a></li>
                        <li><a href="#javascript">JavaScript</a></li>
                        <li><a href="#lua">Lua</a></li>
                        <li><a href="#net">.NET</a></li>
                        <li><a href="#node">Node</a></li>
                        <li><a href="#perl">Perl</a></li>
                        <li><a href="#php">PHP</a></li>
                        <li><a href="#python">Python</a></li>
                        <li><a href="#ruby">Ruby</a></li>
                        <li><a href="#scala">Scala</a></li>
                    </ul>
                    <h3>Resources</h3>
                    <ul>
                        <li>
                            <a href="http://benfrain.com/lightning-fast-sass-compiling-with-libsass-node-sass-and-grunt-sass/">Lightning
                                fast Sass compiling with libsass, Node-sass and Grunt-sass</a> — by Ben Frain, August
                            2013
                        </li>
                        <li><a href="https://www.gitbook.io/book/anotheruiguy/nodeexpreslibsass_from-scratch">Node,
                            Express and libSass</a> — Node, Express and libSass: a project from scratch workshop
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="alert release">
        <div class="container">
            <ul>
                <li>Current Release: <span class="release-name">Selective Steve (3.4.22)</span></li>
                <li><a href="../documentation/file.SASS_CHANGELOG.html">Release Notes</a></li>
                <li><a href="https://github.com/sass/sass">Fork on Github</a></li>
                <li><a href="implementation">Implementation Guide</a></li>
            </ul>
        </div>
    </div>
</div>
<footer class="contentinfo" role="contentinfo">
    <nav class="container">
        <ul>
            <li class="contentinfo-legal"><p>Sass © 2006–2015 <a href="http://www.hamptoncatlin.com/">Hampton Catlin</a>,
                <a href="http://nex-3.com/">Natalie Weizenbaum</a>, <a href="http://chriseppstein.github.io/">Chris&nbsp;Eppstein</a>,
                and&nbsp;numerous&nbsp;contributors.</p>
                <p>It is available for use and modification under the <a
                        href="http://sass-lang.com/docs/yardoc/file.MIT-LICENSE.html">MIT&nbsp;License</a>.</p></li>
            <li class="contentinfo-tools">
                <ul>
                    <li><a href="https://github.com/sass">Sass on GitHub</a></li>
                    <li><a href="https://github.com/sass/sass-site">Website Repo</a></li>
                    <li><a href="/styleguide">Style Guide</a></li>
                    <li><a href="/community-guidelines">Community Guidelines</a></li>
                </ul>
            </li>
            <li class="contentinfo-social">
                <a class="twitter-follow-button" data-show-count="false" data-size="large"
                   href="https://twitter.com/SassCSS">Follow @SassCSS</a>
            </li>
        </ul>
    </nav>
</footer>
</body>
</html>